cmake_minimum_required(VERSION 3.22)
project(variable_test)

set(VAR1 "normal-var1")
set(VAR2 "normal-var2")

set(VAR1 "cache-var1" CACHE STRING "prompt:cache var1")
set(VAR "cache-var" CACHE STRING "prompt:cache var")

set(ENV{VAR2} "env-var2")
set(ENV{VAR} "env-var")
set(ENV{VAR_EX} "env-var-ex")


message("VAR1: ${VAR1}")
message("VAR2: ${VAR2}")
message("CACHE VAR1: $CACHE{VAR1}, ${VAR1}")
message("CACHE VAR: $CACHE{VAR}, ${VAR}")
message("CACHE VAR2: $CACHE{VAR2}")
message("ENV VAR2: $ENV{VAR2}, ${VAR2}")
message("ENV VAR: $ENV{VAR}, ${VAR}")
message("ENV VAR-EX by nomal ref: ${VAR_EX}")

